package com.ibiaoke.order.service;

import com.ibiaoke.order.entity.ShoppingCart;
import com.ibiaoke.order.entity.ShoppingCartGoods;

import java.util.List;

/**
 * @author Dragon
 * @date 2018/5/17/11:41;
 */
public interface ShoppingCartGoodsService {
    ShoppingCartGoods getGoodsInfos(Integer cartId, Integer goodsId, Integer shopId);

    Integer updateShoppingCartGoods(Integer cartId, Integer goodsId, Integer shopId, Integer num);

    Integer saveNewInfo(ShoppingCartGoods cartGoods);

    int deleteShopppingCartGoods(Integer cartId);

    List<ShoppingCartGoods> listCartGoods(List<Integer> cartIds, List<Integer> shopIds);

    Integer updateNum(Integer cartId, Integer goodsId, Integer shopId, Integer num);

    List<ShoppingCartGoods> getShoppingCartByCartId(List<Integer> ids);
}
